﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ListAccount : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadListAccount();
    }

    private void LoadListAccount()
    {

        if (Request.QueryString["CN"] != null)
        {
            String CN = Request.QueryString["CN"];
            localhost.Service SvBank = new localhost.Service();
            //binding database
            grvListAccount.DataSource = SvBank.ListAccount(CN);
            grvListAccount.DataBind();
        }

    }
}
